package com.tianji.learning.service;

import com.tianji.common.domain.dto.PageDTO;
import com.tianji.learning.domain.dto.ReplyDTO;
import com.tianji.learning.domain.po.InteractionReply;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tianji.learning.domain.query.ReplyPageQuery;
import com.tianji.learning.domain.vo.ReplyVO;

/**
* @author Cammy
* @description 针对表【interaction_reply(互动问题的回答或评论)】的数据库操作Service
* @createDate 2025-02-13 14:31:21
*/
public interface InteractionReplyService extends IService<InteractionReply> {

    /**
     * 新增回答或评论
     * @param replyDTO
     */
    void saveReply(ReplyDTO replyDTO);

    /**
     * 分页查询回答或评论
     *
     * @param replyPageQuery
     * @param isAdmin
     */
    PageDTO<ReplyVO> queryReplyPage(ReplyPageQuery replyPageQuery, boolean isAdmin);

    /**
     * 隐藏或显示评论
     * @param id
     * @param hidden
     */
    void hiddenReply(Long id, Boolean hidden);

    /**
     * 根据id查询回答或评论
     * @param id
     * @return
     */
    ReplyVO queryReplyById(Long id);
}
